Component({
    data: {
      selected: 0,
      color: "#696969",
      selectedColor: "#000",
      list: [  {
        "pagePath": "../../pages/represent_index/represent_index",
        "iconPath": "../../img/icon_03.png",
        "selectedIconPath": "../../img/icon_act_03.png",
        "text": "首页"
    },
    {
        "pagePath": "../../pages/my/my",
        "iconPath": "../../img/icon_06.png",
        "selectedIconPath": "../../img/icon_act_06.png",
        "text": "我的"
    }]
    },
    attached() {
    },
    methods: {
      switchTab(e) {
        const data = e.currentTarget.dataset
        const url = data.path
        wx.switchTab({url})
        this.setData({
          selected: data.index
        })
      }
    }
  })